package cloud.alibaba.study.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;

@Configuration
public class RibbonConfig {
	
	/**
	 * @Title: rule   
	 * @Description:自定义ribbon调用规则 默认规则 RoundRobinRule
	 * @date: 2021年12月20日 下午5:04:23   
	 * @version:
	 * @return          
	 * @throws
	 */
	@Bean
	public IRule rule() {
		return new RoundRobinRule();
	}

}
